jetpack-mu-wpcom: add AI Launchpad cross-stream contract files#49562
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
Fixes DOTOBRD-458
Proposed changes
src/features/ai-launchpad/contracts/agent-output-schema.json— the JSON Schema for the AI Launchpad's AI output shape (tasks,inferred,first_post_draft). This is the cross-stream contract: the upcomingtailor.tsvalidates model responses against it at runtime, the REST endpoint validatesPUT /tailoredbodies against it server-side, and Jest/PHPUnit suites assert against it.src/features/ai-launchpad/contracts/eval-fixtures.json— six fixture cases (one per onboarding goal) used by prompt evaluation and manual smoke testing.Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
node -e "['agent-output-schema.json','eval-fixtures.json'].forEach(f => JSON.parse(require('fs').readFileSync('projects/packages/jetpack-mu-wpcom/src/features/ai-launchpad/contracts/' + f)))"$schema,$id,type,required,properties).